import 'package:flutter/material.dart';
import 'package:flutter_eve_plugin/constants/font_family.dart';
import 'package:flutter_eve_plugin/constants/font_weight.dart';
import 'package:flutter_eve_plugin/utils/image_util.dart';
import 'package:flutter_eve_plugin/utils/screen_util.dart';

class CheckpointCenterTitleWidget extends StatelessWidget {
  const CheckpointCenterTitleWidget({
    Key key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: EdgeInsets.only(left: setRatio(28), top: setRatio(40)),
      child: Container(
        width: setRatio(291),
        height: setRatio(30),
        decoration: BoxDecoration(
            image: DecorationImage(
                image: AssetImage(
                    imageUtilYeXiu('checkpoint/icon_dialog_title_bg@3x')))),
        child: Center(
          child: Text(
            '可能掉落',
            style: TextStyle(
                fontFamily: FontFamily.PINGFANG,
                fontWeight: FontWeightCustom.PF_Medium,
                fontSize: setTextSp(15),
                color: Color(0xFFFFFFFF)),
          ),
        ),
      ),
    );
  }
}
